.article-view {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding: 20px 0;

  &-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
  }

  &-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    gap: 20px;
  }

  &-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
  }

  &-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
}

.article-content-card {
  margin-bottom: 20px;

  .article-header {
    margin-bottom: 30px;

    .article-title {
      margin-bottom: 16px !important;
      line-height: 1.3;
    }

    .article-meta {
      margin-bottom: 20px;
    }

    .article-stats {
      margin-top: 20px;
      
      .ant-statistic {
        text-align: center;
      }
    }
  }

  .article-cover {
    text-align: center;
    margin-bottom: 30px;

    .cover-image {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
  }

  .article-body {
    .article-content {
      font-size: 16px;
      line-height: 1.8;
      color: #333;

      // 作品内容样式
      h1, h2, h3, h4, h5, h6 {
        margin: 24px 0 16px 0;
        font-weight: 600;
      }

      h1 { font-size: 28px; }
      h2 { font-size: 24px; }
      h3 { font-size: 20px; }
      h4 { font-size: 18px; }
      h5 { font-size: 16px; }
      h6 { font-size: 14px; }

      p {
        margin: 16px 0;
        text-align: justify;
      }

      img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
        margin: 16px 0;
        display: block;
        margin-left: auto;
        margin-right: auto;
      }

      blockquote {
        border-left: 4px solid #1890ff;
        padding-left: 16px;
        margin: 16px 0;
        background-color: #f6f8fa;
        padding: 16px;
        border-radius: 4px;
      }

      code {
        background-color: #f6f8fa;
        padding: 2px 6px;
        border-radius: 3px;
        font-family: 'Monaco', 'Consolas', monospace;
        font-size: 14px;
      }

      pre {
        background-color: #f6f8fa;
        padding: 16px;
        border-radius: 6px;
        overflow-x: auto;
        margin: 16px 0;

        code {
          background: none;
          padding: 0;
        }
      }

      ul, ol {
        padding-left: 24px;
        margin: 16px 0;

        li {
          margin: 8px 0;
        }
      }

      table {
        width: 100%;
        border-collapse: collapse;
        margin: 16px 0;

        th, td {
          border: 1px solid #d9d9d9;
          padding: 8px 12px;
          text-align: left;
        }

        th {
          background-color: #fafafa;
          font-weight: 600;
        }
      }

      a {
        color: #1890ff;
        text-decoration: none;

        &:hover {
          text-decoration: underline;
        }
      }
    }
  }

  .article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
  }
}

.article-actions {
  text-align: center;
  
  .ant-btn {
    margin: 0 8px;
  }
}

// 响应式设计
@media (max-width: 768px) {
  .article-view {
    padding: 10px 0;

    &-container {
      padding: 0 15px;
    }

    &-header {
      flex-direction: column;
      gap: 10px;
      align-items: stretch;
    }
  }

  .article-content-card {
    .article-header {
      .article-title {
        font-size: 24px !important;
      }

      .article-meta {
        .ant-space {
          flex-wrap: wrap;
        }
      }

      .article-stats {
        .ant-col {
          margin-bottom: 16px;
        }
      }
    }

    .article-body {
      .article-content {
        font-size: 15px;
      }
    }
  }

  .article-actions {
    .ant-space {
      flex-direction: column;
      width: 100%;

      .ant-btn {
        width: 100%;
        margin: 4px 0;
      }
    }
  }
}